#include<conio.h>
#include<stdio.h>
#include<iostream>
using namespace std;
class CPolygon
{
	protected:
		int width, height;
	public:
		void setValues(int a, int b);
};
void CPolygon::setValues(int a, int b)
{
	width=a;
	height=b;
}
class CRectangle:public CPolygon
{
	public:
		int area();
};
int CRectangle::area()
{
	return(width*height);
}
int main()
{
	CRectangle rect;
	rect.setValues(4,5);
	cout<<rect.area()<<endl;
	getch();
	return 0;
}
